<template>
     <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="(item,i) in newlist" :kew="item.id">
					<router-link :to="'/home/newinfo/'+item.id">
						<img class="mui-media-object mui-pull-left" :src="item.img_url">
						<div class="mui-media-body">
							{{item.title}}
							<div class="mui-ellipsis">
                                <span>{{item.add_time | fordata}}</span> 点击：{{item.click}}次
                                </div>
						</div>
					</router-link>
				</li>
				<!-- <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="../images/muwu.jpg">
						<div class="mui-media-body">
							木屋
							<p class="mui-ellipsis">想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.</p>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">
						<div class="mui-media-body">
							CBD
							<p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
						</div>
					</a>
				</li> -->

			</ul>
</template>
<script>
    export default{
        data(){
            return{
           newlist:[]
            }
        },
        created(){
            this.getinfo()
           
        },
        methods:{
            async getinfo(){
                const {data} = await this.$http.get('/api/getnewslist')
                if(data.status === 0) {
                    console.log(data.message)
                    this.newlist = data.message;

                }
            }
        }
        
    }
</script>

<style>
.mui-ellipsis{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #26a2ff;
}
.mui-media-body {
    font-size: 14px;
}
</style>
